import java.util.Scanner;
public class Demo {
    public static void main(String[] args) {
        int a[] = new int[5];
        int[] b = new int[5];
        int c[] = {1,2,3,4,5};
        int d[] = new int[]{11,22,33,44,55};
        System.out.println("c:"+c.length);
        System.out.println("d:"+d.length);
        //通过循环显示数组内的元素
        for(int i=0;i< d.length;i++){
            System.out.println("d["+i+"]"+"="+d[i]);
        }
        int e[] = new int[5];
        Scanner sc = new Scanner(System.in);
        //通过循环给数组元素初始化
        for(int i=0;i< e.length;i++){
            e[i]=sc.nextInt();
        }
        for(int i=0;i< d.length;i++){
            System.out.println("e["+i+"]"+"="+e[i]);
        }
    }
}
